package com.cmfi.service.inter.userRoleAuthInter;

import java.util.List;

import com.alibaba.fastjson2.JSONObject;
import com.cmfi.domain.userRoleAuthEntity.User;
import com.cmfi.domain.userRoleAuthEntity.UserRoleAndAuth;

public interface UserService {
	boolean saveUser(User user) throws Exception;

	void updatePassword(Long id, User user) throws Exception;
	
	boolean authorizeRoleForUser(Long userId, Long roleId) throws Exception;

	List<UserRoleAndAuth> getUserRoleAndAuthorizeModules(Long id) throws Exception;

	JSONObject getUserAccount();

	void updateUser(User user);

	List<User> getAllUsers(String sortParam, long page, long size) throws Exception;
}
